﻿using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace WCF.Common.GisService
{
    /// <summary>表示一个数据服务图层对象。</summary>
    [DataContract(Namespace = Constrons.NameSpace)]
    public class ServiceLayer:ServiceBase
    {
        /// <summary>获取或设置数据服务认证字符串。</summary>
        [DataMember,XmlAttribute]
        public string Token { get; set; }
        /// <summary>获取或设置数据服务的提示信息。</summary>
        [DataMember, XmlAttribute]
        public string Description { get; set; }
        /// <summary>获取或设置数据服务的参数表达式。</summary>
        [DataMember, XmlAttribute]
        public string ParmsExpression { get; set; }
        /// <summary>获取或设置数据服务的关键字</summary>
        [DataMember, XmlAttribute]
        public string Tags { get; set; }
        /// <summary>获取或设置服务地址</summary>
        [DataMember, XmlAttribute]
        public string Url { get; set; }
        /// <summary>获取或设置数据服务的图标</summary>
        [DataMember, XmlAttribute]
        public string ImageUrl1 { get; set; }
        /// <summary>获取或设置数据服务前景色</summary>
        [DataMember, XmlAttribute]
        public string Foreground { get; set; }
        /// <summary>获取或设置数据服务背景色</summary>
        [DataMember, XmlAttribute]
        public string Background { get; set; }
        /// <summary>获取或设置数据服务类型</summary>
        [DataMember, XmlAttribute]
        public string Type { get; set; }
    }
}